#!/bin/sh
#
# $OpenBSD: mod_speedycgi-enable,v 1.2 2014/03/13 22:25:46 sthen Exp $

MODULE=${PREFIX}/lib/mod_speedycgi.so

if [ `id -u` -ne 0 ]; then
    echo "You must be root to run this script."
    exit
fi

if [ ! -f ${MODULE} ]; then
    echo "Cannot find mod_speedycgi module (${MODULE})"
    exit 1
else
    echo "Enabling SpeedyCGI module..."
    ${MODAPACHE_APXS} -i -a -n speedycgi ${MODULE}
fi
